package com.qf.shopping.vo.article;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author 82024
 * @Date 2019/4/18 16:50
 * @Version 1.0
 * @Description
 **/
public class ArticleVO {

    @Autowired
    private ArticleConstom articleConstom = null;

    public ArticleConstom getArticleConstom() {
        return articleConstom;
    }

    public void setArticleConstom(ArticleConstom articleConstom) {
        this.articleConstom = articleConstom;
    }

    public ArticleVO() {
    }

    public ArticleVO(ArticleConstom articleConstom) {
        this.articleConstom = articleConstom;
    }

    public static List<ArticleVO> getArticleVOS(List<ArticleConstom> list){
        List<ArticleVO> vos = new ArrayList<>();
        for (ArticleConstom constom : list) {
            ArticleVO vo = new ArticleVO();
            vo.setArticleConstom(constom);
            vos.add(vo);
        }
        return vos;
    }
}
